package cn.edu.scau.cmi.hekaimin.singleton;

public class ChairmanMao {
	private static ChairmanMao instance;
	private String name = null;;
	private ChairmanMao(String name) {
		this.name = name;
	}
	public static ChairmanMao getInstance(String name) {
		if(instance == null && !name.equals(null))
			instance = new ChairmanMao(name);
		
		return instance;
	}
	public static String getName() {
		return instance.name;
	}
}
